package com.xue.springcolud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * 消费者服务启动类
 * */
@SpringBootApplication
@EnableEurekaClient  //消费者（客户端）启动服务后自动注册到Eureka服务中
@EnableFeignClients(basePackages = {"com.xue.springcolud"})
@ComponentScan("com.xue.springcloud.service")
public class FeignDeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(FeignDeptConsumer_80.class,args);
    }
}
